package com.lin.server;

import com.lin.dataobject.Role;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

import java.util.List;

/**
 * Created by MYQ on 2017/10/28.
 */
public interface RoleService {
    Role findOne(Integer id);

    List<Role> findAll(String name, String startTime, String endTime);
    Page<Role> findAll(String name, String startTime, String endTime, Pageable pageable);


    Role save(Role role);

    void del(Role role);

    Long getSize(String name, String startTime, String endTime);

    List<Role> findAll(Integer status);
}
